gtk4.git
11 years agocheckbutton: Don't redundantly update states
Benjamin Otte [Sun, 17 Aug 2014 01:19:59 +0000 (03:19 +0200)]
checkbutton: Don't redundantly update states

States are set properly by GtkButton, there is no need to set them
manually.

11 years agocheckbutton: Draw background unconditionally
Benjamin Otte [Sat, 16 Aug 2014 22:58:04 +0000 (00:58 +0200)]
checkbutton: Draw background unconditionally

We want to draw backgrounds always, not just on prelight. Themes can
decide to only set a background during prelight themselves.

11 years agoreftests: Update for :active => :checked change
Benjamin Otte [Sat, 16 Aug 2014 18:41:09 +0000 (20:41 +0200)]
reftests: Update for :active => :checked change

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Sat, 16 Aug 2014 18:28:01 +0000 (21:28 +0300)]
Updated Hebrew translation

11 years agostylecontext: Update docs to reflect theming engines being gone
Benjamin Otte [Mon, 16 Jun 2014 14:37:01 +0000 (16:37 +0200)]
stylecontext: Update docs to reflect theming engines being gone

11 years agothemingengine: Deprecate
Benjamin Otte [Sun, 15 Jun 2014 14:05:16 +0000 (16:05 +0200)]
themingengine: Deprecate

11 years agothemingengine: Remove now unused private API
Benjamin Otte [Mon, 16 Jun 2014 02:53:14 +0000 (04:53 +0200)]
themingengine: Remove now unused private API

11 years agothemingengine: Transition code towards StyleContext
Benjamin Otte [Sat, 16 Aug 2014 17:22:15 +0000 (19:22 +0200)]
themingengine: Transition code towards StyleContext

We want to get rid of theming engines, so stop using them as much as
possible.

11 years agoborderimage: Use style context as argument
Benjamin Otte [Sat, 16 Aug 2014 17:00:03 +0000 (19:00 +0200)]
borderimage: Use style context as argument

... not the theming engine.

11 years agoroundedbox: Remove functions that take a GtkThemingEngine
Benjamin Otte [Mon, 16 Jun 2014 02:28:06 +0000 (04:28 +0200)]
roundedbox: Remove functions that take a GtkThemingEngine

Instead, make the functions use a GtkStyleContext argument.

11 years agothemingbackground: Remove initializer that takes a GtkThemingEngine
Benjamin Otte [Mon, 16 Jun 2014 02:22:50 +0000 (04:22 +0200)]
themingbackground: Remove initializer that takes a GtkThemingEngine

With the unification to use style contexts everywhere, make that
initializer the only one to use.

Also rename it appropriately.

11 years agostylecontext: Move private a11y function to private header
Benjamin Otte [Sun, 15 Jun 2014 16:03:59 +0000 (18:03 +0200)]
stylecontext: Move private a11y function to private header

11 years agoMore updates
Matthias Clasen [Sat, 16 Aug 2014 17:38:47 +0000 (13:38 -0400)]
More updates

11 years agoUpdate expected output for the font picker a11y test
Matthias Clasen [Sat, 16 Aug 2014 17:02:47 +0000 (13:02 -0400)]
Update expected output for the font picker a11y test

This change is a consequence of the recent font chooser changes.

11 years agoUpdate expected output in a11y tests for buttons
Matthias Clasen [Sat, 16 Aug 2014 17:01:50 +0000 (13:01 -0400)]
Update expected output in a11y tests for buttons

This is an expected change from the recent button state cleanups.

11 years agoFix make install
Matthias Clasen [Sat, 16 Aug 2014 16:13:07 +0000 (12:13 -0400)]
Fix make install

The path to gtk-update-icon-cache was set incorrectly in one case.

11 years agotogglebutton: Remove unneeded code
Benjamin Otte [Fri, 15 Aug 2014 22:45:00 +0000 (00:45 +0200)]
togglebutton: Remove unneeded code

The state is completely handled by gtkbutton.c so no need to do anything
in the togglebutton.

11 years agotogglebutton: Don't duplicate button code
Benjamin Otte [Fri, 15 Aug 2014 22:43:18 +0000 (00:43 +0200)]
togglebutton: Don't duplicate button code

It's the same code, so no need to write the same vfunc twice.

11 years agoradiobutton: :hover on hover
Benjamin Otte [Fri, 15 Aug 2014 16:30:19 +0000 (18:30 +0200)]
radiobutton: :hover on hover

No special cases, those go in the theme.

11 years agobutton: Handle :inconsistent in GtkToggleButton
Benjamin Otte [Fri, 15 Aug 2014 16:26:35 +0000 (18:26 +0200)]
button: Handle :inconsistent in GtkToggleButton

11 years agobutton: Handle :checked in gtktogglebutton.c
Benjamin Otte [Fri, 15 Aug 2014 14:58:39 +0000 (16:58 +0200)]
button: Handle :checked in gtktogglebutton.c

Don't try to handle it elsewhere.

11 years agowidget: Add checks for setting state flags
Benjamin Otte [Fri, 15 Aug 2014 14:51:42 +0000 (16:51 +0200)]
widget: Add checks for setting state flags

This is more for GTK developers to catch when they forgot to change
GTK_STATE_FLAGS_BITS after adding a new state flag than to prevent
widget developers from using the wrong flags.

11 years agothemingengine: Remove hack to draw backgrounds instead of checks
Benjamin Otte [Thu, 7 Aug 2014 13:36:09 +0000 (15:36 +0200)]
themingengine: Remove hack to draw backgrounds instead of checks

This was a hack we added in early 3.x to allow themes to customize their
checkmarks.
Now that we want to properly support real backgrounds everywhere,
supporting this feature would cause double draws of backgrounds.

11 years agostylecontext: Update docs for gtk_render_activity()
Benjamin Otte [Fri, 15 Aug 2014 01:55:53 +0000 (03:55 +0200)]
stylecontext: Update docs for gtk_render_activity()

11 years agogtk: Don't use gtk_render_activity()
Benjamin Otte [Thu, 14 Aug 2014 23:58:49 +0000 (01:58 +0200)]
gtk: Don't use gtk_render_activity()

... in places where we draw a background. This was changed for GTK 3.0.0
to allow animations, but these days it doesn't make sense anymore to use
gtk_render_activity() for backgrounds.

11 years agobutton: Remove depressed_on_activate
Benjamin Otte [Thu, 14 Aug 2014 13:44:35 +0000 (15:44 +0200)]
button: Remove depressed_on_activate

All buttons should always be marked as :active when they are pressed.
That includes checkboxes (which are never activated in real code anyway,
so this change pretty much doesn't matter).

11 years agocss: Do inconsistent checked states right
Benjamin Otte [Thu, 14 Aug 2014 03:14:36 +0000 (05:14 +0200)]
css: Do inconsistent checked states right

In HTML5, both pseudoclasses apply. So we do the same thing in our
widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=733967

11 years agobutton: Remove depressed variable
Benjamin Otte [Thu, 14 Aug 2014 03:13:29 +0000 (05:13 +0200)]
button: Remove depressed variable

It is not used anymore.

11 years agobutton: Don't honor child-displacement anymore
Benjamin Otte [Thu, 14 Aug 2014 02:43:45 +0000 (04:43 +0200)]
button: Don't honor child-displacement anymore

It doesn't make sense to support child displacement in a world where
pseudoclasses behave different from the actual displacement states.
Nobody would ever understand why a widget is displaced.

It is easily possible to simulate child displacement by using padding
CSS properties.

11 years agogtk: Use new :checked state
Benjamin Otte [Thu, 14 Aug 2014 02:34:30 +0000 (04:34 +0200)]
gtk: Use new :checked state

on:
- GtkToggleButton
- GtkCheckButton
- GtkRadioButton
- GtkModelButton
- GtkCellRendererToggle
- GtkCheckMenuItem

also update themes:
- Adwaita
- Raleigh
but not the win32 theme.

The new :checked state replaces :active for the actual checkedness of
the widgets and :active is now used exclusively while the button is being
pressed.

https://bugzilla.gnome.org/show_bug.cgi?id=733967

11 years agocss: Add a :checked pseudoclass
Benjamin Otte [Thu, 14 Aug 2014 01:00:02 +0000 (03:00 +0200)]
css: Add a :checked pseudoclass

https://bugzilla.gnome.org/show_bug.cgi?id=733967

11 years agoReplace uses of g_memmove() by memmove()
Sébastien Wilmet [Fri, 15 Aug 2014 19:22:07 +0000 (21:22 +0200)]
Replace uses of g_memmove() by memmove()

g_memmove() is deprecated, it is a simple macro that just calls
memmove() with the same parameters.

Reviewed by Paolo Borelli on IRC.

11 years agoAdd an example for a hig-style toolbar
Matthias Clasen [Sat, 16 Aug 2014 03:22:00 +0000 (23:22 -0400)]
Add an example for a hig-style toolbar

11 years agoGtkFontChooser: Prevent font fallback in the preview
Matthias Clasen [Fri, 15 Aug 2014 21:29:34 +0000 (17:29 -0400)]
GtkFontChooser: Prevent font fallback in the preview

We don't want to preview the fallback fonts, after all.
https://bugzilla.gnome.org/show_bug.cgi?id=570414

11 years agoUpdated POTFILES.in
Piotr Drąg [Fri, 15 Aug 2014 19:25:38 +0000 (21:25 +0200)]
Updated POTFILES.in

11 years agoGtkFontButton: Avoid criticals
Matthias Clasen [Fri, 15 Aug 2014 19:15:45 +0000 (15:15 -0400)]
GtkFontButton: Avoid criticals

The font_family and font_face members may be NULL, and we
shouldn't cause critical warnings in that case.

11 years agoGtkFontButton: Limit the decimals shown for size
Matthias Clasen [Fri, 15 Aug 2014 19:09:45 +0000 (15:09 -0400)]
GtkFontButton: Limit the decimals shown for size

It doesn't make sense to show a font size with 6 digits. Use
the same formatting we use in the font chooser widget now.

https://bugzilla.gnome.org/show_bug.cgi?id=724996

11 years agoGtkFontChooserWidget: Allow fractional font sizes
Matthias Clasen [Fri, 15 Aug 2014 18:57:31 +0000 (14:57 -0400)]
GtkFontChooserWidget: Allow fractional font sizes

With this change, we let users enter up to 2 decimals in the entry,
to specify font sizes exactly. The slider still rounds to whole
numbers.

https://bugzilla.gnome.org/show_bug.cgi?id=665711

11 years agoGtkFontButton: Use the same font name as the font chooser
Matthias Clasen [Fri, 15 Aug 2014 18:10:55 +0000 (14:10 -0400)]
GtkFontButton: Use the same font name as the font chooser

The font chooser constructs the display name for the font from
the family and face names. Do the same in the font button, so
we don't end up calling the same font by different names, which
would be confusing.

11 years agoGtkFontChooserWidget: Use a better display name for the font
Behdad Esfahbod [Fri, 15 Aug 2014 17:27:00 +0000 (17:27 +0000)]
GtkFontChooserWidget: Use a better display name for the font

Instead of reconstructing a display name from the
PangoFontDescription, use the font family and face
objects, which have the original font. This lets us
get the names of fonts like Noto Sans CJK DemiLight
right, which would be shown as Noto Sans CJK SemiLight
when mangled via PangoFontDescription, since Pango
treats 'DemiLight' as an alias for the SemiLight weight.

https://bugzilla.gnome.org/show_bug.cgi?id=733832

11 years agoGtkGestureSingle: Update declared defaults of properties
Matthias Clasen [Fri, 15 Aug 2014 17:12:15 +0000 (13:12 -0400)]
GtkGestureSingle: Update declared defaults of properties

These should match the initial values, which were changed a
few commits ago. The defaultvalue test fails if there is a
mismatch, like here.

11 years agowin32: Set the right source device
Matthias Clasen [Fri, 15 Aug 2014 17:04:57 +0000 (13:04 -0400)]
win32: Set the right source device

https://bugzilla.gnome.org/show_bug.cgi?id=734738

11 years agoDeprecate GtkStatusIcon
Matthias Clasen [Thu, 14 Aug 2014 18:34:53 +0000 (14:34 -0400)]
Deprecate GtkStatusIcon

GtkStatusIcon is using a problematic, XEmbed-based protocol under X,
and we want to get rid of it eventually. Document our intentions by
marking GtkStatusIcon as deprecated.

https://bugzilla.gnome.org/show_bug.cgi?id=734826

11 years agoutil/extract-strings: Use autotools syntax for building
Rico Tzschichholz [Fri, 15 Aug 2014 15:56:39 +0000 (17:56 +0200)]
util/extract-strings: Use autotools syntax for building

Always refer to it as "extract-strings$(EXEEXT)" where needed to take
cross-compilation into account.

https://bugzilla.gnome.org/show_bug.cgi?id=731013

11 years agoRevert "Bug 731013 - cross-compilation broken when building extract-strings"
Rico Tzschichholz [Fri, 15 Aug 2014 15:40:55 +0000 (17:40 +0200)]
Revert "Bug 731013 - cross-compilation broken when building extract-strings"

This reverts commit 651d9e90e715ba0f4e246d03102cfb5353c19dc6.

The commit broke 'make dist' - the extract-strings sources are no
longer included in the tarball.

11 years agoUpdates for 3.13.7
Matthias Clasen [Fri, 15 Aug 2014 13:14:20 +0000 (09:14 -0400)]
Updates for 3.13.7

11 years agoGtkMenuItemAccessible: use "insert" signal
Ryan Lortie [Fri, 4 May 2012 00:12:32 +0000 (17:12 -0700)]
GtkMenuItemAccessible: use "insert" signal

Use the "insert" rather than the "add" signal to reliably detect
additions of menu items.

https://bugzilla.gnome.org/show_bug.cgi?id=372545

11 years agotreeview: Make multipress gesture accept all buttons
Carlos Garnacho [Tue, 12 Aug 2014 12:06:04 +0000 (14:06 +0200)]
treeview: Make multipress gesture accept all buttons

That gesture is meant to handle clicks on multiple buttons, so unset
the GDK_BUTTON_PRIMARY default. Also, remove unnecessary boilerplate
with the new GtkGestureSingle/GtkEventController defaults.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agotextview: Make multipress gesture accept all buttons
Carlos Garnacho [Tue, 12 Aug 2014 12:04:35 +0000 (14:04 +0200)]
textview: Make multipress gesture accept all buttons

That gesture is meant to handle clicks on multiple buttons, so unset
the GDK_BUTTON_PRIMARY default. Also, remove unnecessary boilerplate
with the new GtkGestureSingle/GtkEventController defaults.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agorange: Make multipress gesture accept all buttons
Carlos Garnacho [Tue, 12 Aug 2014 12:02:24 +0000 (14:02 +0200)]
range: Make multipress gesture accept all buttons

That gesture is meant to handle clicks from several buttons, so unset
the new GDK_BUTTON_PRIMARY default. Also, remove unnecessary boilerplate
with the new default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agowindow: Set GtkGestureSingle::button to 0 on multipress gesture
Carlos Garnacho [Mon, 11 Aug 2014 19:57:04 +0000 (21:57 +0200)]
window: Set GtkGestureSingle::button to 0 on multipress gesture

This gesture handles events from multiple buttons, so ensure the
gesture still does so after the default value change.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agoscrolledwindow: Make kinetic scrolling only work on touch devices
Carlos Garnacho [Mon, 11 Aug 2014 19:56:12 +0000 (21:56 +0200)]
scrolledwindow: Make kinetic scrolling only work on touch devices

This code was relying on the previous GtkGestureSingle::touch-only default
value, so restore the behavior back.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agospinbutton: Make the swipe gesture only work on touch devices
Carlos Garnacho [Mon, 11 Aug 2014 19:54:39 +0000 (21:54 +0200)]
spinbutton: Make the swipe gesture only work on touch devices

This code was relying on the previous GtkGestureSingle::touch-only default
value.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agolabel: Update to new GtkGestureSingle/GtkEventController defaults
Carlos Garnacho [Mon, 11 Aug 2014 19:52:59 +0000 (21:52 +0200)]
label: Update to new GtkGestureSingle/GtkEventController defaults

GtkGestureSingle::button is set to 0 on the multipress gesture, as several
buttons are managed by that gesture. Also avoid some extra lines of code
setting what nowadays are default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agoentry: Update to new GtkGestureSingle/GtkEventController defaults
Carlos Garnacho [Mon, 11 Aug 2014 19:51:50 +0000 (21:51 +0200)]
entry: Update to new GtkGestureSingle/GtkEventController defaults

GtkGestureSingle::button is set to 0 on the drag/multipress gestures, as several
buttons are managed by these gestures. Also, avoid some extra lines of code
setting what nowadays are default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agodnd: Set explicitly GtkGestureSingle::button to 0 on the drag gesture
Carlos Garnacho [Mon, 11 Aug 2014 19:50:15 +0000 (21:50 +0200)]
dnd: Set explicitly GtkGestureSingle::button to 0 on the drag gesture

This gesture handles drags done with any button, so unset the current button=1
default.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agocolorswatch: Update to new GtkGestureSingle/GtkEventController defaults
Carlos Garnacho [Mon, 11 Aug 2014 19:48:43 +0000 (21:48 +0200)]
colorswatch: Update to new GtkGestureSingle/GtkEventController defaults

GtkGestureSingle::button is set to 0 on the multipress gesture, as several
buttons are managed by that gesture. Also avoid some extra lines of code
setting what nowadays are default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agocolorplane: Update to new GtkGestureSingle/GtkEventController defaults
Carlos Garnacho [Mon, 11 Aug 2014 19:45:51 +0000 (21:45 +0200)]
colorplane: Update to new GtkGestureSingle/GtkEventController defaults

GtkGestureSingle::button is set to 0, as multiple buttons are managed by
the same gesture. Also avoid some extra lines of code setting what nowadays
are default values.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agogesturesingle: Change default values of button and touch-only properties
Carlos Garnacho [Mon, 11 Aug 2014 19:43:58 +0000 (21:43 +0200)]
gesturesingle: Change default values of button and touch-only properties

This now defaults to sane values on mice, so touch-only is set to FALSE,
and button is set to GDK_BUTTON_PRIMARY;

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agowindow: Set multipress gesture phase to be GTK_PHASE_NONE explicitly
Carlos Garnacho [Mon, 11 Aug 2014 18:43:17 +0000 (20:43 +0200)]
window: Set multipress gesture phase to be GTK_PHASE_NONE explicitly

This used to rely on the default value, which has changed to a saner default.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agodnd: Set drag gesture propagation phase to GTK_PHASE_NONE explicitly
Carlos Garnacho [Mon, 11 Aug 2014 18:41:44 +0000 (20:41 +0200)]
dnd: Set drag gesture propagation phase to GTK_PHASE_NONE explicitly

This used to rely on the default phase value.

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agoeventcontroller: Default to GTK_PHASE_BUBBLE
Carlos Garnacho [Mon, 11 Aug 2014 18:38:51 +0000 (20:38 +0200)]
eventcontroller: Default to GTK_PHASE_BUBBLE

This is in practice the most common value, so make that the default

https://bugzilla.gnome.org/show_bug.cgi?id=734285

11 years agoDrop another unused bit of configury
Matthias Clasen [Fri, 15 Aug 2014 01:33:21 +0000 (21:33 -0400)]
Drop another unused bit of configury

pwd.h is not used anywhere in GTK+, so no need to check
for it.

11 years agoDrop unused variable
Matthias Clasen [Fri, 15 Aug 2014 01:21:32 +0000 (21:21 -0400)]
Drop unused variable

Nothing is using gdk-pixbuf-csource anymore, so no need
to set up the GDK_PIXBUF_CSOURCE variable.

11 years agoFixed some object leaks in broadway_server_new() constructor.
Domenico Tortorella [Thu, 14 Aug 2014 11:08:10 +0000 (13:08 +0200)]
Fixed some object leaks in broadway_server_new() constructor.

https://bugzilla.gnome.org/show_bug.cgi?id=734778

11 years agoBroadway: Make unix socket support conditional
Matthias Clasen [Fri, 15 Aug 2014 00:29:54 +0000 (20:29 -0400)]
Broadway: Make unix socket support conditional

We need to use gio/gunixsocketaddress.h and do so
only if HAVE_GIO_UNIX is defined.

11 years agoBroadwayServer support for unix socket listening
Domenico Tortorella [Thu, 14 Aug 2014 11:30:00 +0000 (13:30 +0200)]
BroadwayServer support for unix socket listening

At the present time broadway listens only for TCP/IP incoming
display connections. This patch implements the support for listening
on unix domain sockets too, adding the broadway_server_on_unix_socket_new()
constructor and the commandline option --unixsocket [path] to broadwayd.

https://bugzilla.gnome.org/show_bug.cgi?id=734420

11 years agoAdapt to spinbutton changes
Matthias Clasen [Thu, 14 Aug 2014 23:38:14 +0000 (19:38 -0400)]
Adapt to spinbutton changes

11 years agotests: Sanitize
Benjamin Otte [Thu, 14 Aug 2014 22:11:35 +0000 (00:11 +0200)]
tests: Sanitize

gcc was unhappy again.

11 years agoUpdated POTFILES.skip
Piotr Drąg [Thu, 14 Aug 2014 18:41:54 +0000 (20:41 +0200)]
Updated POTFILES.skip

11 years agoreftests: Add reftest for statusbar fix
Benjamin Otte [Thu, 14 Aug 2014 17:52:33 +0000 (19:52 +0200)]
reftests: Add reftest for statusbar fix

https://bugzilla.gnome.org/show_bug.cgi?id=724281

11 years agoStatusbar: Remove matching messages before popping
Phillip Wood [Wed, 12 Feb 2014 15:56:11 +0000 (15:56 +0000)]
Statusbar: Remove matching messages before popping

gtk_statusbar_remove_all() was popping the top message if its
context_id matched before removing other matching messages from the
stack. This meant that if the context_id of the second top message
matched it was still displayed when the top message was popped and
then removed from the list of messages without updating the display.
Fix this by removing all the matching messages below the top one
before popping it if it matches.

https://bugzilla.gnome.org/show_bug.cgi?id=724281

11 years agoreftests: Make gcc happy
Benjamin Otte [Thu, 14 Aug 2014 17:08:37 +0000 (19:08 +0200)]
reftests: Make gcc happy

11 years agoGtkListBoxRow: Set clip
Timm Bäder [Wed, 13 Aug 2014 09:32:47 +0000 (11:32 +0200)]
GtkListBoxRow: Set clip

https://bugzilla.gnome.org/show_bug.cgi?id=734709

11 years agoFix a thinko in creating event masks
Matthias Clasen [Thu, 14 Aug 2014 04:10:23 +0000 (00:10 -0400)]
Fix a thinko in creating event masks

&-ing together all the device event types yields zero,
which is clearly not the intention here. Use | instead,
to create the intended mask.

https://bugzilla.gnome.org/show_bug.cgi?id=734641

11 years agoAdd some spinbutton tests
Matthias Clasen [Thu, 14 Aug 2014 04:04:10 +0000 (00:04 -0400)]
Add some spinbutton tests

These tests check some of the changes from the previous commits.

11 years agoGtkSpinButton: Prevent public API from unsetting the adjustment
Debarshi Ray [Tue, 12 Aug 2014 15:45:53 +0000 (17:45 +0200)]
GtkSpinButton: Prevent public API from unsetting the adjustment

A spin button really needs an adjustment to work. So don't let the
user unset the adjustment by passing NULL to
gtk_spin_button_set_adjustment.

https://bugzilla.gnome.org/show_bug.cgi?id=734660

11 years agoGtkSpinButton: Always emit value-changed when the adjustment is changed
Debarshi Ray [Tue, 12 Aug 2014 11:44:34 +0000 (13:44 +0200)]
GtkSpinButton: Always emit value-changed when the adjustment is changed

Changing adjustment via the property setter would not emit
value-changed, however changing it via gtk_spin_button_configure would.

This inconsistency had the following side-effects:

  - Setting an adjustment with a different value would not update the
    value shown by the spin button.

  - Creating a spin button like this (common in GtkBuilder XML) will
    not show the initial value:
      g_object_new (GTK_TYPE_SPIN_BUTTON, "adjustment", adj, NULL);

Let's use the same code path (ie. gtk_spin_button_configure) for all
public facing API for setting adjustment. The code that handled the
details of swapping out the old adjustment with the new has been split
into an unset_adjustment method and the rest has been folded into
gtk_spin_button_configure.

A spin button really needs an adjustment to work, so we don't need
most of the NULL checks. However we do need to check in
unset_adjustment because setting a new adjustment during object
creation might try to unset a non-existent one.

https://bugzilla.gnome.org/show_bug.cgi?id=734660

11 years agoFix various warnings
Руслан Ижбулатов [Wed, 13 Aug 2014 18:43:51 +0000 (18:43 +0000)]
Fix various warnings

https://bugzilla.gnome.org/show_bug.cgi?id=734737

11 years agoFix some print format warnings
Руслан Ижбулатов [Wed, 13 Aug 2014 18:17:23 +0000 (18:17 +0000)]
Fix some print format warnings

https://bugzilla.gnome.org/show_bug.cgi?id=734736

11 years agoFix various warnings about unused things
Руслан Ижбулатов [Wed, 13 Aug 2014 15:51:43 +0000 (15:51 +0000)]
Fix various warnings about unused things

https://bugzilla.gnome.org/show_bug.cgi?id=734735

11 years agogdkwayland-window: Don't map the grab transfer menu for GtkMenu
Jasper St. Pierre [Wed, 13 Aug 2014 23:01:52 +0000 (19:01 -0400)]
gdkwayland-window: Don't map the grab transfer menu for GtkMenu

This is a bad idea in general, but it also means that the focus for a
window drops when we pop up a menu, since the grab transfer menu exists.

11 years agoUpdated Greek translation
Tom Tryfonidis [Wed, 13 Aug 2014 21:45:34 +0000 (21:45 +0000)]
Updated Greek translation

11 years agoFix the build of the native gtk-update-icon-cache when cross-compiling.
Jehan [Wed, 13 Aug 2014 07:11:23 +0000 (07:11 +0000)]
Fix the build of the native gtk-update-icon-cache when cross-compiling.

As a noinst_PROGRAMS, the libtool generated for cross-compiling will be
used, which will mess up the linking. Create a all-local target instead.
Also ensure that building uses always a native version of the tool by
specifying a GTK_UPDATE_ICON_CACHE automake variable.
Finally "config.h" has been created to work for the target platform and
causes problem when cross-compiling. So we temporarily generate a basic
config.h which contains only the strict minimum.

11 years agoBug 731013 - cross-compilation broken when building extract-strings
Jehan [Wed, 13 Aug 2014 05:08:08 +0000 (05:08 +0000)]
Bug 731013 - cross-compilation broken when building extract-strings

It is actually a bad idea to use noinst_PROGRAMS for build tools,
because it adds a $(EXEEXT). It is best to override the all target
with all-local to trigger the tool build.

11 years agoplaces-sidebar: Refine the spacing
Yosef Or Boczko [Wed, 13 Aug 2014 12:24:44 +0000 (15:24 +0300)]
places-sidebar: Refine the spacing

Based on a patch by Yosef Or Boczko,
https://bugzilla.gnome.org/show_bug.cgi?id=731443

11 years agoAdwaita: check/radio icon source override fix
Lapo Calamandrei [Wed, 13 Aug 2014 16:44:17 +0000 (18:44 +0200)]
Adwaita: check/radio icon source override fix

11 years agoAdwaita: app-notification revert erroneusly committed changes
Lapo Calamandrei [Wed, 13 Aug 2014 15:28:55 +0000 (17:28 +0200)]
Adwaita: app-notification revert erroneusly committed changes

11 years agoAdwaita: Use -gtk-icon-source for checkmarks
Benjamin Otte [Thu, 7 Aug 2014 13:42:42 +0000 (15:42 +0200)]
Adwaita: Use -gtk-icon-source for checkmarks

instead of using background-image

11 years agocss: Match state in siblings properly
Benjamin Otte [Wed, 13 Aug 2014 14:18:39 +0000 (16:18 +0200)]
css: Match state in siblings properly

Previously, we always returned the state flags of the original widget
and did not consider the siblings' pseudoclasses.

Testcase is attached.

11 years agowidgetpath: Use CSS-like syntax in to_string()
Benjamin Otte [Wed, 13 Aug 2014 14:18:04 +0000 (16:18 +0200)]
widgetpath: Use CSS-like syntax in to_string()

Print pseudo-classes using ':' sign.

11 years agoAdwaita: path-bar home button spacing
Lapo Calamandrei [Wed, 13 Aug 2014 14:41:36 +0000 (16:41 +0200)]
Adwaita: path-bar home button spacing

11 years agoAdwaita: saner backdrop switch for the dark variant
Lapo Calamandrei [Wed, 13 Aug 2014 14:36:15 +0000 (16:36 +0200)]
Adwaita: saner backdrop switch for the dark variant

11 years agoAdwaita: saner menubar
Lapo Calamandrei [Wed, 13 Aug 2014 14:19:14 +0000 (16:19 +0200)]
Adwaita: saner menubar

11 years agoGtkPathBar: Don't hardcode spacing in buttons
Matthias Clasen [Wed, 13 Aug 2014 13:31:34 +0000 (09:31 -0400)]
GtkPathBar: Don't hardcode spacing in buttons

The theme will be changed to provide padding.

11 years agoGtkPathBar: Make recoloring symbolics work
Matthias Clasen [Wed, 13 Aug 2014 13:29:40 +0000 (09:29 -0400)]
GtkPathBar: Make recoloring symbolics work

We were only recreating the icons the very first time the theme
changed, and not every time as was intended.

11 years agowidget-factory: Avoid a compiler warning
Matthias Clasen [Wed, 13 Aug 2014 13:19:09 +0000 (09:19 -0400)]
widget-factory: Avoid a compiler warning

This is adjusting to the draw_layer signature change.

11 years agowidget-factory: Add a missing style class
Matthias Clasen [Wed, 13 Aug 2014 13:16:09 +0000 (09:16 -0400)]
widget-factory: Add a missing style class

Unfortunately, constructing image-only buttons by just adding
the image as a child does not give us the image-button style
class. Add it manually.

11 years agoGtkTextView: Preserve the cairo context around draw_layer
Matthias Clasen [Wed, 13 Aug 2014 13:14:22 +0000 (09:14 -0400)]
GtkTextView: Preserve the cairo context around draw_layer

Otherwise, draw_layer might unintentionally wreak havoc on the
regular drawing that happens between the two draw_layer calls.

11 years agoGtkTextView: Change draw_layer signature
Matthias Clasen [Wed, 13 Aug 2014 13:09:22 +0000 (09:09 -0400)]
GtkTextView: Change draw_layer signature

Vfuncs should really take 'this' of the right type - the type
that the vfunc is added in.